/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Ekaterina
 */
@Entity
@Table (name = "educationv", catalog = "otdelkadrov", schema = "")
public class Educationv implements Serializable {
    @Column(name = "institution_name")
private String institution_name;
    
    @Column(name = "datee")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
private Date datee;
    
    @Column(name = "periodd")
private String periodd;
    
    @Column(name = "type")
private String type;
    
    @Column(name = "forma")
private String forma;
    
    @Column(name = "document")
private String document;
    
   
    
     @Id
@GeneratedValue
@Column (name="id")
private Integer id = null;
    
    @ManyToOne
    @JoinColumn(name = "worker",referencedColumnName = "id")
    private Worker worker;

    public String getInstitution_name() {
        return institution_name;
    }

    public Date getDatee() {
        return datee;
    }

    public String getPeriodd() {
        return periodd;
    }

    public String getType() {
        return type;
    }

    public String getForma() {
        return forma;
    }

    public String getDocument() {
        return document;
    }

    public Integer getId() {
        return id;
    }

    public Worker getWorker() {
        return worker;
    }

    public void setInstitution_name(String institution_name) {
        this.institution_name = institution_name;
    }

    public void setDatee(Date datee) {
        this.datee = datee;
    }

    public void setPeriodd(String periodd) {
        this.periodd = periodd;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setForma(String forma) {
        this.forma = forma;
    }

    public void setDocument(String document) {
        this.document = document;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setWorker(Worker worker) {
        this.worker = worker;
    }
    
    
}
